<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script type="text/javascript">
            function refresh() {
                $("#flexigrid").flexReload();
                setTimeout("refresh()", 30000);
            }
        </script>  
    </head>
    <body onload="refresh()">
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none" width="100%"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('area/realtime/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('AREA_ID') ?>', name: 'SvrID', width: "100", iskey: true},
                        {display: '<?= translate('AREA_NAME') ?>', name: 'SvrName', width: "200"},
                        {display: '<?= translate('AREA_REALTIME_CUR_ONLINE') ?>', width: "100", name: 'currentonline'},
                        {display: '<?= translate('AREA_REALTIME_TOP_ONLINE') ?>', width: "100", name: 'todaycount'},
                        {display: '<?= translate('AREA_UPDATE_TIME') ?>', width: "100", name: 'createtime'},
                        {display: '<?= translate('AREA_PLAYER_COUNT') ?>', width: "150", name: 'registercount'},

//                        {display: '<?//= translate('STATUS') ?>//', name: 'state', width: "250", sortable: false}
                    ],
                    buttons: [
                        { name: 'reject', displayname: "<?=translate('CLOSE')?>", bclass: 'reject', onpress: multi },
                        { name: 'accept', displayname: "<?=translate('OPEN')?>", bclass: 'accept', onpress: multi },
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true},
                    ],
                    searchitems:false,
                }));
                SG.admin = $.extend(SG.admin, {
                    multi_url: '<?= site_url("area/realtime/multi/") ?>',
                    table: '{pre}areasample'
                });
            });
        </script>       
    </body>
</html>